﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Collections.Specialized;

namespace Axe.Web.Controls.Configuration
{
    public class WikiContentProviderConfiguration : ConfigurationElement
    {
        NameValueCollection m_InitializationParams = new NameValueCollection();

        public NameValueCollection InitializationParams
        {
            get { return m_InitializationParams; }
        }

        [ConfigurationProperty("name")]
        public string Name
        {
            get { return (string)this["name"]; }
            set { base["name"] = value; }
        }

        [ConfigurationProperty("type")]
        public string Type
        {
            get { return (string)this["type"]; }
            set { base["type"] = value; }
        }

        protected override bool OnDeserializeUnrecognizedAttribute(string name, string value)
        {
            m_InitializationParams.Add(name, value);
            return true;
        }
    }
}
